package com.jinlia.show.modules.base.model.form;

import com.jinlia.show.modules.base.model.po.DeliveryOrderPO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class OrderForm {

    //总原价格
    private BigDecimal originalMoney;
    //应收金额 = originalMoney -  discountMoney - mlMoney
    private BigDecimal receivableMoney;//应收默认为原价
    //折扣金额（originalMoney*(1-discountRate)）
    private BigDecimal discountRate ;//默认折扣
    private BigDecimal discountMoney;//
    // 折扣后金额(originalMoney*discountRate)
    private BigDecimal discountedMoney;
    //抹零金额 默认 0
    private BigDecimal mlMoney;
    //配送费
    private BigDecimal deliveryMoney;
    private Integer deliveryType;
    /**
     * 下单人id
     */
    private Long userId;
    private Long companyId;
    private String appId;
    /**
     * 下单人的会员id
     */
    private Long memberCardId;
    /**
     * 购物车ids
     */
    private List<Long> shoppingCartIds;
    /**
     * 优惠券id
     */
    private List<Long> couponRelIds;

    private String remark;
    /**
     * 配送信息
     */
    private DeliveryOrderPO deliveryOrder;
}
